Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import google_compute_shared_vpc_host_project/google_compute_shared_vpc_service_project resources #1004

Merged
merged 2 commits into from
Jan 24, 2018

Conversation

ewbankkit
Copy link
Contributor

Fixes #1003.

New acceptance test:

make testacc TEST=./google TESTARGS='-run=TestAccComputeSharedVpc_import'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./google -v -run=TestAccComputeSharedVpc_ -timeout 120m
=== RUN   TestAccComputeSharedVpc_importBasic
--- PASS: TestAccComputeSharedVpc_importBasic (168.57s)

"github.com/hashicorp/terraform/helper/resource"
)

func TestAccComputeSharedVpc_importBasic(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we're actually trying to get away from having separate files for import tests, because it hides the fact that we're actually duplicating a lot of our tests. Instead, can you add the TestSteps that do the import to the regular tests?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do.

@ewbankkit
Copy link
Contributor Author

Import test incorporated into main acceptance tests:

make testacc TEST=./google TESTARGS='-run=TestAccComputeSharedVpc_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./google -v -run=TestAccComputeSharedVpc_ -timeout 120m
=== RUN   TestAccComputeSharedVpc_basic
--- PASS: TestAccComputeSharedVpc_basic (177.28s)
PASS
ok  	github.com/terraform-providers/terraform-provider-google/google	183.499s

Copy link
Contributor

@danawillow danawillow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks @ewbankkit!

@danawillow danawillow merged commit b795a45 into hashicorp:master Jan 24, 2018
@ewbankkit ewbankkit deleted the issue-1003 branch January 25, 2018 14:01
chrisst pushed a commit to chrisst/terraform-provider-google that referenced this pull request Nov 9, 2018
…pc_service_project resources (hashicorp#1004)

* Import google_compute_shared_vpc_host_project/google_compute_shared_vpc_service_project resources.

* Incorporate testing of resource import into main acceptance tests.
@ghost
Copy link

ghost commented Mar 29, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

@ghost ghost locked and limited conversation to collaborators Mar 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Import Shared VPC host/service resources
2 participants